﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace QuizAppMvc2.Controllers
{
    public class ConfigController : Controller
    {
        //
        // GET: /Config/

        public ActionResult ResetBD()
        {
            quizdbEntities db = new quizdbEntities();

            foreach (Questao q in db.Questaos)
            {
                db.DeleteObject(q);
            }
            db.SaveChanges();

            
            

            return Redirect("/Home");
        }

    }
}
